package com.cy1;

/**
 * @author CY
 * @date 2022/09/19 14:36
 **/
public class Student {
    private String name;
    private int age;
    private double fenshu;

    public Student(String name, int age, double fenshu) {
        this.name = name;
        this.age = age;
        this.fenshu = fenshu;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getFenshu() {
        return fenshu;
    }

    public void setFenshu(double fenshu) {
        this.fenshu = fenshu;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", fenshu=" + fenshu +
                '}';
    }
}
